package com.lastproject.web.bean;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import com.lastproject.dto.AnswerDTO;
import com.lastproject.dto.EmployeeDTO;
import com.lastproject.dto.QuestionDTO;
import com.lastproject.dto.QuestionOptionDTO;
import com.lastproject.dto.UserDTO;
import com.lastproject.ejb.dao.AnswerDAORemote;
import com.lastproject.ejb.dao.EmployeeDAORemote;
import com.lastproject.ejb.dao.QuestionDAORemote;
import com.lastproject.ejb.dao.QuestionOptionDAORemote;
import com.lastproject.ejb.dao.UserDAORemote;

///**
// * Session Bean implementation class AnswerStatsBean
// */
//@ManagedBean(name = "surveyQOBean")
@RequestScoped
public class SurveyQOBean {

	@ManagedProperty(value = "#{questionOptionDtoList}")
	private List<QuestionOptionDTO> questionOptionDtoList;
	
	@ManagedProperty(value = "#{answerDtoList}")
	private List<AnswerDTO> answerDtoList;
	
	@ManagedProperty(value = "#{userDTO}")
	private UserDTO userDTO;
	@EJB
	UserDAORemote userDao;
	
	@ManagedProperty(value = "#{employeeDTO}")
	private EmployeeDTO employeeDTO;
	@EJB
	EmployeeDAORemote employeeDao;

	
	@ManagedProperty(value = "#{questionDTO}")
	private QuestionDTO questionDTO;
	@EJB
	QuestionDAORemote questionDao;

	@ManagedProperty(value = "#{questionOptionDTO}")
	private QuestionOptionDTO questionOptionDTO;
	@EJB
	QuestionOptionDAORemote questionOptionDao;

	@ManagedProperty(value = "#{answerDTO}")
	private AnswerDTO answerDTO;
	@EJB
	AnswerDAORemote answerDao;

	public SurveyQOBean() {

	}
	
	public SurveyQOBean(QuestionOptionDTO questionOptionDTO) {
		this.questionOptionDTO = questionOptionDTO;
	}

	public List<QuestionOptionDTO> getQuestionOptionDtoList() {
		return questionOptionDtoList;
	}

	public void setQuestionOptionDtoList(
			List<QuestionOptionDTO> questionOptionDtoList) {
		this.questionOptionDtoList = questionOptionDtoList;
	}

	public List<AnswerDTO> getAnswerDtoList() {
		return answerDtoList;
	}

	public void setAnswerDtoList(List<AnswerDTO> answerDtoList) {
		this.answerDtoList = answerDtoList;
	}

	public UserDTO getUserDTO() {
		return userDTO;
	}

	public void setUserDTO(UserDTO userDTO) {
		this.userDTO = userDTO;
	}

	public EmployeeDTO getEmployeeDTO() {
		return employeeDTO;
	}

	public void setEmployeeDTO(EmployeeDTO employeeDTO) {
		this.employeeDTO = employeeDTO;
	}

	public QuestionDTO getQuestionDTO() {
		return questionDTO;
	}

	public void setQuestionDTO(QuestionDTO questionDTO) {
		this.questionDTO = questionDTO;
	}

	public QuestionOptionDTO getQuestionOptionDTO() {
		return questionOptionDTO;
	}

	public void setQuestionOptionDTO(QuestionOptionDTO questionOptionDTO) {
		this.questionOptionDTO = questionOptionDTO;
	}

	public AnswerDTO getAnswerDTO() {
		return answerDTO;
	}

	public void setAnswerDTO(AnswerDTO answerDTO) {
		this.answerDTO = answerDTO;
	}

}
